﻿<%@ Page Language="C#" MasterPageFile="~/CISFPortal_RightMenu.Master" ValidateRequest="false"
    AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeBehind="SubmitRisk.aspx.cs"
    Inherits="Microsoft.InformationSecurity.RiskManagement.ISRMWeb.Risks.SubmitRisk" %>

<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajxToolkit" %>
<%@ Register Assembly="CISFAjaxExtenders" Namespace="Microsoft.InformationSecurity.CISF.Web.AjaxExtenders"
    TagPrefix="cc2" %>
<%@ Register Src="~/UserControls/CreateTasks.ascx" TagName="CreateTasks" TagPrefix="cvt" %>
<%@ Register Src="~/UserControls/RighthandMenuControl.ascx" TagName="RighthandMenu"
    TagPrefix="ucRighthandMenu" %>
<asp:Content ID="contendSubmitRisk" ContentPlaceHolderID="ContentPlaceHolder" runat="server">

    <script language="javascript" type="text/javascript">
        function ClearTextBox() {
            document.getElementById("ctl00$ContentPlaceHolder$masterRiskTabContainer$tabRiskData$txtfindContact").value = "";
        }
        function CheckForInputWt(sender, args) {
            var num = parseFloat(args.Value);
            // Check for Number
            if (isNaN(num)) {
                args.IsValid = false;
                return;
            }

            // Round off to 1 decimal.
            num = num.toFixed(1);

            //Check for Range.
            if (num > 100 || num <= 0) {
                args.IsValid = false;
                return;
            }

            var inputtxt = document.getElementById("ctl00_ContentPlaceHolder_masterRiskTabContainer_tabRiskData_ctl07_txtRiskWt");
            inputtxt.value = num;

            args.IsValid = true;

            // Hack to update the when not in debuggin mode.
            CheckForInputWtOnChange("ctl00_ContentPlaceHolder_masterRiskTabContainer_tabRiskData_ctl07_txtRiskWt", null);
        }

        function CheckForInputWtOnChange(conn, e) {
            var inputtxt = document.getElementById("ctl00_ContentPlaceHolder_masterRiskTabContainer_tabRiskData_ctl07_txtRiskWt").value;
            var pcrv = document.getElementById("ctl00_ContentPlaceHolder_masterRiskTabContainer_tabRiskData_ctl07_lblPRCV");
            var num = parseFloat(inputtxt);

            // Check for Number
            if (isNaN(num)) {
                alert("InValid Input.Prioritization Weight should be greater than 0 and less than or equal to 100. Only one decimal point is supported.");
                if (pcrv != null)
                    pcrv.outerText = "UnKnown";
                return false;
            }
            // Round off to 1 decimal.
            num = num.toFixed(1);

            //Check for Range.
            if (num > 100 || num <= 0) {
                alert("InValid Input.Prioritization Weight should be greater than 0 and less than or equal to 100. Only one decimal point is supported.");
                if (pcrv != null)
                    pcrv.outerText = "UnKnown";
                return false;
            }
            // Call postback to do AJAX style submission to server side.
            __doPostBack(conn, e);
        }
    </script>

    <asp:UpdatePanel runat="server" ID="riskFeature">
        <ContentTemplate>
            <div style="position: absolute; left: 33%; top: 40%; padding: 0px; border: 0px; border-style: solid;
                width: 400px; height: 200px">
                <asp:UpdateProgress ID="uprProgress" runat="server" DisplayAfter="200">
                    <ProgressTemplate>
                        <table class="progressBar" width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="center" style="width: 30%">
                                    <asp:Image ID="imgUpdateProgress" ImageUrl="~/Images/LineSpinner-blue.gif" runat="server" />&nbsp;
                                </td>
                                <td>
                                    <asp:Label ID="lblWaitMessage" Text="Please wait while processing data..." CssClass="messageWait"
                                        Font-Bold="true" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <table border="0" cellpadding="0" cellspacing="3" width="100%">
                                        <tr>
                                            <td style="width: 3%;">
                                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                    <tr>
                                                        <td align="left" valign="middle" style="width: 5%">
                                                            <img src="../Images/Edit-32.png" alt="Risk Data."  />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                            <td>
                                                <table cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td style="width: 6%;" align="left">
                                                            <asp:Label runat="server" ID="lblrequiredtitle" Text="*" ForeColor="Red"></asp:Label>
                                                            <asp:Label runat="server" ID="lblTitle" Text="Title:" CssClass="headerlabel"></asp:Label>
                                                        </td>
                                                        <td style="width: 83%" align="left">
                                                            <asp:TextBox runat="server" ID="txtTitle" Width="860" MaxLength="250" ToolTip="Enter the Title for the Risk."></asp:TextBox>
                                                            <ajxToolkit:TextBoxWatermarkExtender ID="waterMarktxtTitle" runat="server" TargetControlID="txtTitle"
                                                                WatermarkText="Enter title here..." WatermarkCssClass="watermark" />
                                                            <asp:RequiredFieldValidator runat="server" ID="reqtxtTitle" Display="None" SetFocusOnError="true"
                                                                ControlToValidate="txtTitle" ValidationGroup="insertRisk" ErrorMessage="Title is a required field."></asp:RequiredFieldValidator>
                                                            <ajxToolkit:TextBoxWatermarkExtender ID="waterMarkExtxtTitle" runat="server" TargetControlID="txtTitle"
                                                                WatermarkText="Enter title here..." WatermarkCssClass="watermark" />
                                                            <asp:ValidationSummary ID="valSummerRisk" runat="server" ValidationGroup="insertRisk"
                                                                DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" HeaderText="Please correct the following:" />
                                                        </td>
                                                        <td align="right" style="width: 5%;">
                                                            <asp:Button runat="server" ValidationGroup="insertRisk" ID="btnSubmitRisk" Text="Submit"
                                                                CssClass="button" ToolTip="Click here to submit the risk to the system." OnClick="btnSubmitRisk_Click" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td style="width: 100%;" colspan="4">
                                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                <tr>
                                                                    <td style="width: 1%">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td style="width: 5%;">
                                                                        <asp:Label runat="server" ID="lblRiskID" Text="Risk Id:" CssClass="headerlabel"></asp:Label>
                                                                    </td>
                                                                    <td style="text-align: left; width: 15%;">
                                                                        <asp:TextBox runat="server" ID="txtRiskID" ReadOnly="True" Width="120px" Enabled="False"
                                                                            ToolTip="Risk ID." Text="Auto"></asp:TextBox>
                                                                    </td>
                                                                    <td style="width: 10%">
                                                                        <asp:Label runat="server" ID="lblSubmitted" Text="Submitted By:" CssClass="headerlabel"></asp:Label>
                                                                    </td>
                                                                    <td style="text-align: left; width: 17%;">
                                                                        <asp:Label CssClass="displaylabel" runat="server" ID="lblsubmittedby" ToolTip="The user who submitted Risk."></asp:Label>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td style="width: 10%;">
                                                                        <asp:Label CssClass="headerlabel" runat="server" ID="lblDelimitor" Text="Created Date:"></asp:Label>
                                                                        &nbsp;
                                                                    </td>
                                                                    <td style="text-align: left; width: 15%;">
                                                                        <asp:Label CssClass="displaylabel" runat="server" ID="lblSubmittedDate" ToolTip="Date on which this risk was submitted into system."></asp:Label>
                                                                        <cc2:UTCToLocalExtenderControl ID="UTCToLocalExSubmittedDate" runat="server" TargetControlID="lblSubmittedDate"
                                                                            DateTimeFormatString="g" />
                                                                    </td>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <ajxToolkit:TabContainer ID="masterRiskTabContainer" runat="server">
                                        <ajxToolkit:TabPanel TabIndex="0" BorderWidth="0" HeaderText="Risk Information" ToolTip="Submit or Edit Risk Data"
                                            runat="server" ID="tabRiskData">
                                            <HeaderTemplate>
                                                Risk Information
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td style="width: 20%;" valign="top">
                                                            <table border="0" cellpadding="0" cellspacing="5" width="100%">
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="lblRequiredPII" Text="*" ForeColor="Red"></asp:Label><asp:Label
                                                                            runat="server" ID="lblPII" Text="PII Classification" ToolTip="Select Personal Identifiable Information from the list."
                                                                            CssClass="headerlabel"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left">
                                                                        <asp:DropDownList runat="server" ID="drpPII" Width="200" ToolTip="Personal Identifiable Information">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator runat="server" ID="reqdrpPII" Display="None" SetFocusOnError="true"
                                                                            ControlToValidate="drpPII" ValidationGroup="insertRisk" ErrorMessage="PII is a required field."></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="lblRequiredDataClassification" Text="*" ForeColor="Red"></asp:Label><asp:Label
                                                                            runat="server" ID="lblDataClassification" Text="Data Classification" CssClass="headerlabel">                                                                    
                                                                        </asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left">
                                                                        <asp:DropDownList runat="server" ID="drpDataClassification" Width="200">
                                                                        </asp:DropDownList>
                                                                        <asp:RequiredFieldValidator runat="server" ID="reqdrpDataClassification" Display="None"
                                                                            SetFocusOnError="true" ControlToValidate="drpDataClassification" ValidationGroup="insertRisk"
                                                                            ErrorMessage="Data Classification is a required field."></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="middle">
                                                                        <asp:Label runat="server" ID="lblRequiredOermClssification" Text="*" ForeColor="Red"></asp:Label><asp:Label
                                                                            runat="server" ID="lblOermClassification" Text="ERM Classification" ToolTip="Enterprise Risk Management Classification"
                                                                            CssClass="headerlabel">                                                                    
                                                                        </asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" style="height: 95px; vertical-align: bottom;">
                                                                        <asp:ListBox ToolTip="Select Enterprise Risk Management Classifications." SelectionMode="Multiple"
                                                                            runat="server" ID="lstOERMClassification" Width="200" Rows="5"></asp:ListBox>
                                                                        <ajxToolkit:ListSearchExtender ID="lstOERMClassificationEx" runat="server" TargetControlID="lstOERMClassification"
                                                                            QueryTimeout="0" PromptText="Type to search?" IsSorted="false" Enabled="True"
                                                                            QueryPattern="Contains" PromptCssClass="autocomplete_list" />
                                                                        <asp:RequiredFieldValidator runat="server" ID="reqlstlstOERMClassification" Display="None"
                                                                            SetFocusOnError="true" ControlToValidate="lstOERMClassification" ValidationGroup="insertRisk"
                                                                            ErrorMessage="OERM Classification is a required field."></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="middle">
                                                                        <asp:Label runat="server"  ID="lblLocationsClssification" Text="*"
                                                                            ForeColor="Red"></asp:Label>
                                                                        <asp:Label CssClass="headerlabel" runat="server" ID="lblLocations" Text="Geography Locations">                                                                    
                                                                        </asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left" style="height: 95px; vertical-align: bottom;">
                                                                        <asp:ListBox ToolTip="Select affected locations." SelectionMode="Multiple" runat="server"
                                                                            ID="lstAffectedLocations" Width="200" Rows="5"></asp:ListBox>
                                                                        <ajxToolkit:ListSearchExtender QueryTimeout="0" ID="lstAffectedLocationsEx" runat="server"
                                                                            TargetControlID="lstAffectedLocations" PromptText="Type to search?" IsSorted="True"
                                                                            Enabled="True" PromptCssClass="autocomplete_list" QueryPattern="Contains" />
                                                                        <asp:RequiredFieldValidator runat="server" ID="reqVallstAffectedLocations" Display="None"
                                                                            SetFocusOnError="true" ControlToValidate="lstAffectedLocations" ValidationGroup="insertRisk"
                                                                            ErrorMessage="Geography Locations is a required field."></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="lblRequiredRiskGroups" Text="*" ForeColor="Red"></asp:Label><asp:Label
                                                                            runat="server" ID="lblRiskGroup" Text="Risk Group" CssClass="headerlabel"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:ListBox runat="server" ID="lstRiskGroup" Width="200" ToolTip="The list displays the Risk Groups."
                                                                            SelectionMode="Multiple" Rows="5"></asp:ListBox>
                                                                        <asp:RequiredFieldValidator runat="server" ID="reqValidatorlstRiskGroup" Display="None"
                                                                            SetFocusOnError="true" ControlToValidate="lstRiskGroup" ValidationGroup="insertRisk"
                                                                            ErrorMessage="Risk Group is a required field."></asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="rskOrigin" Text="Risk Origin" CssClass="headerlabel"></asp:Label>
                                                                        <asp:HyperLink runat="server" ID="lnkSourceApp" Target="_blank" Text="(Go to Source)"
                                                                            Visible="false"></asp:HyperLink>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:DropDownList runat="server" ID="drpRiskOrgin" Width="200" ToolTip="The value displays the risk orgin."
                                                                            Enabled="False">
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="lblRequriedRiskStatus" Text="*" ForeColor="Red"></asp:Label><asp:Label
                                                                            runat="server" ID="lblRiskStatus" CssClass="headerlabel" Text="Risk Status"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <td align="left">
                                                                    <asp:DropDownList runat="server" ID="drpRiskStatus" Width="200" ToolTip="Displays Risk Status.">
                                                                    </asp:DropDownList>
                                                                    <asp:RequiredFieldValidator runat="server" ID="reqdrpRiskStatus" Display="None" SetFocusOnError="true"
                                                                        ControlToValidate="drpRiskStatus" ValidationGroup="insertRisk" ErrorMessage="Risk Status is a required field."></asp:RequiredFieldValidator>
                                                                </td>
                                                                <tr>
                                                                    <td valign="top" colspan="2">
                                                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                            <tr>
                                                                                <td>
                                                                                    <asp:CheckBox runat="server" ID="chkTriage" Text="Validated By Risk Triage " TextAlign="Left" />
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                        <td>
                                                            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                                                <tr>
                                                                    <td valign="top" style="width: 70%; vertical-align: top;">
                                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%;">
                                                                            <tr>
                                                                                <td valign="top" style="border-width: 0px;">
                                                                                    <ajxToolkit:Accordion ID="accordianRiskRating" runat="Server" SelectedIndex="0" HeaderCssClass="accordionHeader"
                                                                                        HeaderSelectedCssClass="accordionHeaderSelected" ContentCssClass="accordionContent"
                                                                                        AutoSize="None" FadeTransitions="true" TransitionDuration="200" FramesPerSecond="100"
                                                                                        RequireOpenedPane="true" SuppressHeaderPostbacks="true">
                                                                                        <Panes>
                                                                                            <ajxToolkit:AccordionPane runat="server" ID="currentPane">
                                                                                                <Header>
                                                                                                    <table cellpadding="0" cellspacing="0" width="100%" border="0">
                                                                                                        <tr>
                                                                                                            <td style="width: 40%">
                                                                                                                <img src="../Images/Tools-16.png" alt="chart" />
                                                                                                                &nbsp;
                                                                                                                <asp:Label runat="server" ID="lblCurrent" Text="Current Risk Rating" ToolTip="This displays the options to specify Current Impact/Freqency/Control Effectiveness values and justification for each."></asp:Label>
                                                                                                            </td>
                                                                                                            <td style="width: 30%">
                                                                                                                <asp:Label runat="server" ID="lblCurrentRiskRating" ToolTip="Displays cuurrent Risk Rating (CR)."></asp:Label>
                                                                                                            </td>
                                                                                                            <td style="width: 30%">
                                                                                                                <asp:Label runat="server" ID="lblCurrentCRV" ToolTip="Displays cuurrent Risk Rating Value (CRV)."></asp:Label>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </Header>
                                                                                                <Content>
                                                                                                    <table cellspacing="0" width="100%" cellpadding="0" border="0">
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <table cellspacing="0" width="100%" cellpadding="0" border="0">
                                                                                                                    <tr>
                                                                                                                        <td style="width: 20%;">
                                                                                                                            <asp:Label runat="server" Text="Prioritized  Wt" ID="lblPriorotizationWt" CssClass="headerlabel"></asp:Label>
                                                                                                                        </td>
                                                                                                                        <td style="width: 30%;">
                                                                                                                            <asp:TextBox Text="1.0" ToolTip="Enter the Prioritization Weight.Prioritization Weight should be greater than 0 and less than or equal to 100. Only one decimal point is supported."
                                                                                                                                runat="server" ID="txtRiskWt" Width="50px" MaxLength="4" AutoPostBack="true"
                                                                                                                                OnTextChanged="TxtCalculatePCRV"></asp:TextBox>
                                                                                                                            <asp:Label runat="server" ID="messageWt" Text="(0 &#x3C; Wt<=100)" CssClass="headerlabel"></asp:Label>
                                                                                                                            <ajxToolkit:FilteredTextBoxExtender ID="filterWt" runat="server" TargetControlID="txtRiskWt"
                                                                                                                                FilterMode="ValidChars" Enabled="true" ValidChars="0123456789.">
                                                                                                                            </ajxToolkit:FilteredTextBoxExtender>
                                                                                                                            <asp:RequiredFieldValidator runat="server" ID="reqWtValidator" Display="None" SetFocusOnError="true"
                                                                                                                                ControlToValidate="txtRiskWt" ValidationGroup="insertRisk" ErrorMessage="Weight is a required field."></asp:RequiredFieldValidator>
                                                                                                                            <asp:CustomValidator Display="None" ClientValidationFunction="CheckForInputWt" runat="server"
                                                                                                                                ID="customValidation" ValidateEmptyText="true" ValidationGroup="insertRisk" ControlToValidate="txtRiskWt"
                                                                                                                                SetFocusOnError="true" ErrorMessage="Prioritization Weight should be greater than 0 and less than or equal to 100. Only one decimal point is supported."></asp:CustomValidator>
                                                                                                                        </td>
                                                                                                                        <td style="width: 25%;" align="right">
                                                                                                                            <asp:Label runat="server" ID="lblPCRVLabel" Text="Prioritized CRV" CssClass="headerlabel"></asp:Label>
                                                                                                                        </td>
                                                                                                                        <td style="width: 25%;" align="center">
                                                                                                                            <asp:Label ToolTip="Prioritizated Calculated Current Risk Value(PCCRV)." runat="server"
                                                                                                                                ID="lblPRCV" Font-Underline="true"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <ajxToolkit:TabContainer Width="100%" ID="tabRatingOptionsCurrent" runat="server">
                                                                                                                    <ajxToolkit:TabPanel Width="100%" runat="server" ID="tabImpactCurrent" ScrollBars="Auto"
                                                                                                                        ToolTip="Current Risk information tab." TabIndex="0" HeaderText="Impact">
                                                                                                                        <ContentTemplate>
                                                                                                                            <table cellspacing="2" width="100%" cellpadding="0" border="0">
                                                                                                                                <tr>
                                                                                                                                    <td style="width: 100px">
                                                                                                                                        <asp:Label runat="server" ID="lblCurrentImpact" CssClass="headerlabel" Text="Impact"
                                                                                                                                            ToolTip="Select the Impact Value"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                    <td>
                                                                                                                                        <asp:DropDownList runat="server" EnableViewState="true" ID="drpCurrentImpact" Width="200"
                                                                                                                                            AutoPostBack="true" OnSelectedIndexChanged="drpCurrentImpact_SelectedIndexChanged">
                                                                                                                                        </asp:DropDownList>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:Label runat="server" ID="lblCurrentImpactJustification" CssClass="headerlabel"
                                                                                                                                            Text="Justification"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:TextBox TextMode="MultiLine" runat="server" ID="txtboxCurrentImpact" Rows="8"
                                                                                                                                            Width="99%"></asp:TextBox>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                            </table>
                                                                                                                        </ContentTemplate>
                                                                                                                    </ajxToolkit:TabPanel>
                                                                                                                    <ajxToolkit:TabPanel Width="100%" runat="server" ID="tabFrequencyCurrent" ScrollBars="Auto"
                                                                                                                        ToolTip="Target Risk information tab." TabIndex="3" HeaderText="Frequency">
                                                                                                                        <ContentTemplate>
                                                                                                                            <table cellspacing="2" width="100%" cellpadding="0" border="0">
                                                                                                                                <tr>
                                                                                                                                    <td style="width: 100px">
                                                                                                                                        <asp:Label runat="server" ID="lblCurrentFrequencyValue" CssClass="headerlabel" Text="Frequency"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                    <td>
                                                                                                                                        <asp:DropDownList runat="server" EnableViewState="true" ID="drpCurrentFrequency"
                                                                                                                                            Width="200" OnSelectedIndexChanged="drpCurrentFrequency_SelectedIndexChanged"
                                                                                                                                            AutoPostBack="true">
                                                                                                                                        </asp:DropDownList>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:Label runat="server" ID="lblCurrentFrequencyJustification" CssClass="headerlabel"
                                                                                                                                            Text="Justification"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:TextBox TextMode="MultiLine" runat="server" ID="txtCurrentFrequency" Rows="8"
                                                                                                                                            Width="99%"></asp:TextBox>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                            </table>
                                                                                                                        </ContentTemplate>
                                                                                                                    </ajxToolkit:TabPanel>
                                                                                                                    <ajxToolkit:TabPanel Width="100%" runat="server" ID="tabCFCurrent" ScrollBars="Auto"
                                                                                                                        ToolTip="Target Risk information tab." TabIndex="2" HeaderText="Control Effectiveness">
                                                                                                                        <ContentTemplate>
                                                                                                                            <table cellspacing="2" width="100%" cellpadding="0" border="0">
                                                                                                                                <tr>
                                                                                                                                    <td style="width: 100px">
                                                                                                                                        <asp:Label runat="server" ID="lblCurrentEffectiveness" CssClass="headerlabel" Text="Effectiveness"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                    <td>
                                                                                                                                        <asp:DropDownList runat="server" EnableViewState="true" ID="drpCurrentControlAffectiveness"
                                                                                                                                            Width="200" OnSelectedIndexChanged="drpCurrentControlAffectiveness_SelectedIndexChanged"
                                                                                                                                            AutoPostBack="true">
                                                                                                                                        </asp:DropDownList>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:Label runat="server" ID="lblCurrentEffectivenessJustification" CssClass="headerlabel"
                                                                                                                                            Text="Justification"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:TextBox TextMode="MultiLine" runat="server" ID="txtCurrentCF" Rows="8" Width="99%"></asp:TextBox>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                            </table>
                                                                                                                        </ContentTemplate>
                                                                                                                    </ajxToolkit:TabPanel>
                                                                                                                </ajxToolkit:TabContainer>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </Content>
                                                                                            </ajxToolkit:AccordionPane>
                                                                                            <ajxToolkit:AccordionPane ID="targetPane" HeaderCssClass="accordionHeader" headerselectedcssclass="accordionHeaderSelected"
                                                                                                ContentCssClass="accordionContent" runat="server">
                                                                                                <Header>
                                                                                                    <table cellpadding="0" cellspacing="0" width="100%" border="0">
                                                                                                        <tr>
                                                                                                            <td style="width: 40%">
                                                                                                                <img src="../Images/Tools-16.png" alt="chart" />
                                                                                                                &nbsp;
                                                                                                                <asp:Label runat="server" ID="lblTargetMessage" Text="Target Risk Rating" ToolTip="This displays the options to specify Target Impact/Freqency/Control Effectiveness values and justification for each."></asp:Label>
                                                                                                            </td>
                                                                                                            <td style="width: 30%">
                                                                                                                <asp:Label runat="server" ID="lblTargetRiskRating" ToolTip="Displays Target Risk Rating (CR)."></asp:Label>
                                                                                                            </td>
                                                                                                            <td style="width: 30%">
                                                                                                                <asp:Label runat="server" ID="lblTargteRiskRatingValue" ToolTip="Displays Target Calculated Rating Value (CRV)."></asp:Label>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </Header>
                                                                                                <Content>
                                                                                                    <table cellspacing="0" width="100%" cellpadding="0" border="0">
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <ajxToolkit:TabContainer Width="100%" ID="tabTargetRating" runat="server">
                                                                                                                    <ajxToolkit:TabPanel Width="100%" runat="server" ID="tabImpactTarget" ScrollBars="Auto"
                                                                                                                        ToolTip="Target Risk information tab." TabIndex="0" HeaderText="Impact">
                                                                                                                        <ContentTemplate>
                                                                                                                            <table cellspacing="5" width="100%" cellpadding="0" border="0">
                                                                                                                                <tr>
                                                                                                                                    <td style="width: 100px">
                                                                                                                                        <asp:Label runat="server" ID="lblTargetImpactValue" CssClass="headerlabel" Text="Impact"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                    <td>
                                                                                                                                        <asp:DropDownList runat="server" ID="drpTargetImpact" Width="200" AutoPostBack="true"
                                                                                                                                            OnSelectedIndexChanged="drpTargetImpact_SelectedIndexChanged">
                                                                                                                                        </asp:DropDownList>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:Label runat="server" ID="lblTargetImpactJustification" CssClass="headerlabel"
                                                                                                                                            Text="Justification"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:TextBox TextMode="MultiLine" runat="server" ID="txtTargetImpactJustification"
                                                                                                                                            Rows="8" Width="100%"></asp:TextBox>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                            </table>
                                                                                                                        </ContentTemplate>
                                                                                                                    </ajxToolkit:TabPanel>
                                                                                                                    <ajxToolkit:TabPanel Width="100%" runat="server" ID="tabFrequencyTarget" ScrollBars="Auto"
                                                                                                                        ToolTip="Target Risk information tab." TabIndex="3" HeaderText="Frequency">
                                                                                                                        <ContentTemplate>
                                                                                                                            <table cellspacing="5" width="100%" cellpadding="0" border="0">
                                                                                                                                <tr>
                                                                                                                                    <td style="width: 100px">
                                                                                                                                        <asp:Label runat="server" ID="lblTargetFrequencyValue" CssClass="headerlabel" Text="Frequency"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                    <td>
                                                                                                                                        <asp:DropDownList runat="server" ID="drpTargetControlFrequency" Width="200" AutoPostBack="true"
                                                                                                                                            OnSelectedIndexChanged="drpTargetFrequency_SelectedIndexChanged">
                                                                                                                                        </asp:DropDownList>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:Label runat="server" ID="lblTargetFrequencyJustification" CssClass="headerlabel"
                                                                                                                                            Text="Justification"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:TextBox TextMode="MultiLine" runat="server" ID="txtTargetFreqJustification"
                                                                                                                                            Rows="8" Width="100%"></asp:TextBox>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                            </table>
                                                                                                                        </ContentTemplate>
                                                                                                                    </ajxToolkit:TabPanel>
                                                                                                                    <ajxToolkit:TabPanel Width="100%" runat="server" ID="tabCFTarget" ScrollBars="Auto"
                                                                                                                        ToolTip="Target Risk information tab." TabIndex="2" HeaderText="Control Effectiveness">
                                                                                                                        <ContentTemplate>
                                                                                                                            <table cellspacing="5" width="100%" cellpadding="0" border="0">
                                                                                                                                <tr>
                                                                                                                                    <td style="width: 100px">
                                                                                                                                        <asp:Label runat="server" ID="lblTargetEffectivenessValue" CssClass="headerlabel"
                                                                                                                                            Text="Effectiveness"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                    <td>
                                                                                                                                        <asp:DropDownList runat="server" ID="drpCFTarget" Width="200" AutoPostBack="true"
                                                                                                                                            OnSelectedIndexChanged="drpTargetCA_SelectedIndexChanged">
                                                                                                                                        </asp:DropDownList>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:Label runat="server" ID="lblTargetEffectivenessJustification" CssClass="headerlabel"
                                                                                                                                            Text="Justification"></asp:Label>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                                <tr>
                                                                                                                                    <td colspan="2">
                                                                                                                                        <asp:TextBox TextMode="MultiLine" runat="server" ID="txtTargetCFjustification" Rows="8"
                                                                                                                                            Width="100%"></asp:TextBox>
                                                                                                                                    </td>
                                                                                                                                </tr>
                                                                                                                            </table>
                                                                                                                        </ContentTemplate>
                                                                                                                    </ajxToolkit:TabPanel>
                                                                                                                </ajxToolkit:TabContainer>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </Content>
                                                                                            </ajxToolkit:AccordionPane>
                                                                                            <ajxToolkit:AccordionPane ID="accordPaneChart" HeaderCssClass="accordionHeader" headerselectedcssclass="accordionHeaderSelected"
                                                                                                ContentCssClass="accordionContentChart" runat="server" EnableViewState="true">
                                                                                                <Header>
                                                                                                    <table cellpadding="0" cellspacing="0" border="0px" width="100%">
                                                                                                        <tr>
                                                                                                            <td colspan="3" valign="bottom">
                                                                                                                <img src="../Images/BarGraph-16.png" alt="chart" />
                                                                                                                &nbsp;
                                                                                                                <asp:Label runat="server" ID="lblchartheader" Text="Risk Rating Chart"></asp:Label>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </Header>
                                                                                                <Content>
                                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                                        <tr>
                                                                                                            <td align="left">
                                                                                                                <asp:Label runat="server" ID="lblchartfliter" Text="Note: Data plotted is for last one year."
                                                                                                                    CssClass="headerlabel"></asp:Label>
                                                                                                                <asp:Label runat="server" CssClass="headerlabel" Visible="false" ID="lblChartMessage"
                                                                                                                    Text="No data in system to plot chart."></asp:Label>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td colspan="3" align="center">
                                                                                                                <asp:Chart EnableViewState="true" ID="chartCRV" Height="200" AntiAliasing="All" Width="500"
                                                                                                                    runat="server" BackColor="#D3DEEF" RenderType="ImageTag">
                                                                                                                    <BorderSkin SkinStyle="Emboss"></BorderSkin>
                                                                                                                    <ChartAreas>
                                                                                                                        <asp:ChartArea Name="chartAreaCRV" BorderDashStyle="Solid" AlignmentStyle="PlotPosition"
                                                                                                                            BackSecondaryColor="GhostWhite" ShadowColor="WhiteSmoke" BackGradientStyle="TopBottom">
                                                                                                                        </asp:ChartArea>
                                                                                                                    </ChartAreas>
                                                                                                                </asp:Chart>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </Content>
                                                                                            </ajxToolkit:AccordionPane>
                                                                                        </Panes>
                                                                                    </ajxToolkit:Accordion>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                    <td valign="top" style="width: 30%;">
                                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" style="height: 350px;
                                                                            vertical-align: top;">
                                                                            <tr>
                                                                                <td align="center" style="width: 50%;">
                                                                                    <asp:Label runat="server" ID="lblManager" Text="*" ForeColor="Red"></asp:Label>
                                                                                    <asp:Label ID="lblRiskManager" runat="server" Text="Risk Manager" ToolTip="Select the Risk Manager"
                                                                                        CssClass="headerlabel"></asp:Label>
                                                                                </td>
                                                                                <td align="right">
                                                                                    <asp:DropDownList runat="server" ID="drpManager" Width="140px" ToolTip="Select the risk manager.">
                                                                                    </asp:DropDownList>
                                                                                    <ajxToolkit:ListSearchExtender ID="listextender" runat="server" TargetControlID="drpManager"
                                                                                        QueryPattern="Contains" PromptCssClass="autocomplete_list" IsSorted="True" Enabled="True"
                                                                                        PromptText="Type to search?" />
                                                                                    <asp:RequiredFieldValidator runat="server" ID="reqDrpManager" Display="None" SetFocusOnError="true"
                                                                                        ControlToValidate="drpManager" ValidationGroup="insertRisk" ErrorMessage="Manager is a required field."></asp:RequiredFieldValidator>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2" style="height: 300px; padding-top: 4px;" valign="top" align="left">
                                                                                    <div style="overflow: auto; width: 100%; height: 290px; padding: 0px; margin: 0px;
                                                                                        border-width: 1px; border-color: Silver; border-style: solid; width: 99%">
                                                                                        <asp:TreeView ShowExpandCollapse="true" EnableViewState="true" ID="treeOrganizationContact"
                                                                                            ExpandDepth="FullyExpand" runat="server" NodeIndent="5" ShowCheckBoxes="All"
                                                                                            ExpandImageUrl="~/Images/group.gif" CollapseImageUrl="~/Images/group.gif">
                                                                                            <NodeStyle CssClass="treeviewOrg" />
                                                                                            <DataBindings>
                                                                                                <asp:TreeNodeBinding ToolTipField="OrganizationName" DataMember="Organizaton" TextField="OrganizationName"
                                                                                                    ValueField="OrganizationHierarchyID" />
                                                                                                <asp:TreeNodeBinding ImageUrl="~/Images/online.gif" ToolTipField="FullName" DataMember="Contact"
                                                                                                    TextField="FullName" ValueField="PersonID" />
                                                                                            </DataBindings>
                                                                                        </asp:TreeView>
                                                                                        <asp:XmlDataSource ID="customSource" runat="server" EnableCaching="false" />
                                                                                    </div>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td colspan="2">
                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                        <tr>
                                                                                            <td>
                                                                                                &nbsp;
                                                                                                <asp:ImageButton runat="server" ID="btnDeleteOrganizationContact" ImageUrl="~/Images/RemoveUserOrGroup-32.png"
                                                                                                    ToolTip="Click the image button to delete the selected Organization(s) or Contact(s)."
                                                                                                    OnClick="btnDeleteOrganizationContact_Click" />
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:ImageButton runat="server" ID="btnOrganization" ImageUrl="~/Images/AddGroup-32.png"
                                                                                                    Text="Add Organization" ToolTip="Click the image button to add organization."
                                                                                                    Height="32px" />
                                                                                                <asp:Panel runat="server" EnableViewState="true" ID="pnlAddOrganization" CssClass="modalWindow"
                                                                                                    Style="display: none" Width="550px" DefaultButton="btnSubmitorganizations">
                                                                                                    <table cellpadding="5" cellspacing="5" border="0" width="100%" style="height: 580px">
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <table cellpadding="0" cellspacing="0" border="0" width="98%">
                                                                                                                    <tr>
                                                                                                                        <td align="left" valign="middle" style="width: 40px;">
                                                                                                                            <img src="../Images/AddGroup-32.png" alt="New Contact" height="32px" />
                                                                                                                        </td>
                                                                                                                        <td>
                                                                                                                            &nbsp;
                                                                                                                            <asp:Label runat="server" ID="lblpopupHeaderOrganization" Text="Organizations" CssClass="headerlabel"></asp:Label>
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                    <tr>
                                                                                                                        <td colspan="2">
                                                                                                                            <hr />
                                                                                                                            &nbsp;
                                                                                                                        </td>
                                                                                                                    </tr>
                                                                                                                </table>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td valign="top">
                                                                                                                <div style="overflow: auto; width: 550px; height: 450px; padding: 0px; margin: 0px;
                                                                                                                    border-bottom-width: 0px; border-color: Silver; border-top-width: 0px; border-bottom-style: solid;
                                                                                                                    border-top-style: solid;">
                                                                                                                    <asp:TreeView ShowLines="true" ShowExpandCollapse="true" EnableViewState="true" ID="treeOrganization"
                                                                                                                        OnTreeNodePopulate="PopulateNode" Width="250" ExpandDepth="0" runat="server"
                                                                                                                        ShowCheckBoxes="All">
                                                                                                                        <Nodes>
                                                                                                                            <asp:TreeNode Text="ROOT" SelectAction="Select" ShowCheckBox="false" ToolTip="Root element for the tree." />
                                                                                                                        </Nodes>
                                                                                                                    </asp:TreeView>
                                                                                                                </div>
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td>
                                                                                                                <hr style="width: 98%;" />
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                        <tr>
                                                                                                            <td align="right">
                                                                                                                <asp:Button runat="server" ID="btnSubmitorganizations" Text="Submit" ToolTip="Click here to submit selected organizations."
                                                                                                                    OnClick="btnSubmitOrganizations_Clicked" />
                                                                                                                &nbsp;
                                                                                                                <input id="btnCloseOrg" runat="server" type="button" value=" Cancel " title="Click here to close the current window." />
                                                                                                                <asp:Button runat="server" ID="btnHiddenOrg" Style="display: none" />
                                                                                                                &nbsp; &nbsp;
                                                                                                            </td>
                                                                                                        </tr>
                                                                                                    </table>
                                                                                                </asp:Panel>
                                                                                                <ajxToolkit:ModalPopupExtender EnableViewState="true" ID="mpeOrgainzation" runat="server"
                                                                                                    PopupControlID="pnlAddOrganization" BackgroundCssClass="modalBackground" DropShadow="false"
                                                                                                    TargetControlID="btnOrganization" CancelControlID="btnCloseOrg">
                                                                                                </ajxToolkit:ModalPopupExtender>
                                                                                            </td>
                                                                                            <td>
                                                                                                <asp:ImageButton ImageUrl="~/Images/AddUser-32.png" runat="server" ID="btnAddcontact"
                                                                                                    Text="Add Contact" ToolTip="Click the image button to add contact." />
                                                                                                <asp:Panel CssClass="modalWindow" runat="server" EnableViewState="true" ID="pnlAddContact"
                                                                                                    Style="display: none" Width="550px" DefaultButton="btnSubmitContact">
                                                                                                    <div style="overflow: auto; width: 550px; height: 300px; padding: 0px; margin: 0px;
                                                                                                        border-bottom-width: 0px; border-color: Silver; border-top-width: 0px; border-bottom-style: solid;
                                                                                                        border-top-style: solid;">
                                                                                                        <table cellpadding="0" cellspacing="5" border="0" width="100%">
                                                                                                            <tr>
                                                                                                                <td colspan="3">
                                                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                                                        <tr>
                                                                                                                            <td align="left" valign="middle" style="width: 40px;">
                                                                                                                                <img src="../Images/AddUser-32.png" alt="New Contact" />
                                                                                                                            </td>
                                                                                                                            <td>
                                                                                                                                <asp:Label runat="server" ID="lblHeaderAddContact" Text="Add Contact" CssClass="headerlabel"></asp:Label>
                                                                                                                            </td>
                                                                                                                        </tr>
                                                                                                                        <tr>
                                                                                                                            <td colspan="2">
                                                                                                                                <hr />
                                                                                                                            </td>
                                                                                                                        </tr>
                                                                                                                    </table>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr valign="top">
                                                                                                                <td style="width: 25%;">
                                                                                                                    <asp:Label runat="server" ID="lblSelectContact" Text="Enter Contact Alias" CssClass="headerlabel"></asp:Label>
                                                                                                                </td>
                                                                                                                <td align="left" style="width: 45%;">
                                                                                                                    <asp:TextBox runat="server" ID="txtfindContact" Width="200" MaxLength="50" ToolTip="Enter atleast 3 characters to auto populate the Aliases from System."></asp:TextBox>
                                                                                                                    <ajxToolkit:AutoCompleteExtender runat="server" ID="autoCompleteExtender" TargetControlID="txtfindContact"
                                                                                                                        ServicePath="~/PortalClientService.asmx" ServiceMethod="GetCompletionList" MinimumPrefixLength="3"
                                                                                                                        CompletionSetCount="10" CompletionInterval="1" EnableCaching="true">
                                                                                                                    </ajxToolkit:AutoCompleteExtender>
                                                                                                                </td>
                                                                                                                <td align="left" style="width: 30%;">
                                                                                                                    <asp:Label runat="server" ID="lblExample" Text="Example: vbatta" CssClass="headerlabel"></asp:Label>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr>
                                                                                                                <td colspan="3" valign="top" align="left" style="height: 135px;">
                                                                                                                    <asp:Label runat="server" ID="lblMessage" Text="Note: Please enter atleast 3 characters in the above TextBox for autopopulate to fetch data for you."></asp:Label>
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr>
                                                                                                                <td colspan="3">
                                                                                                                    <hr />
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                            <tr>
                                                                                                                <td colspan="3" align="right">
                                                                                                                    <asp:Button runat="server" ID="btnSubmitContact" Text="Submit" ToolTip="Click here to submit selected contact."
                                                                                                                        OnClick="btnSubmitContact_Clicked" />
                                                                                                                    <input id="btnAddContactCancel" runat="server" type="button" value=" Cancel " title="Click here to close the current window."
                                                                                                                        onclick="ClearTextBox();" />
                                                                                                                    <asp:Button runat="server" ID="btnhiddenAddcontact" Style="display: none" />
                                                                                                                    &nbsp; &nbsp;
                                                                                                                </td>
                                                                                                            </tr>
                                                                                                        </table>
                                                                                                    </div>
                                                                                                </asp:Panel>
                                                                                                <ajxToolkit:ModalPopupExtender EnableViewState="true" ID="mpeAddcontact" runat="server"
                                                                                                    PopupControlID="pnlAddContact" BackgroundCssClass="modalBackground" DropShadow="false"
                                                                                                    TargetControlID="btnAddcontact" CancelControlID="btnAddContactCancel">
                                                                                                </ajxToolkit:ModalPopupExtender>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="top" align="left" colspan="2">
                                                                        <ajxToolkit:TabContainer ID="tabDetailData" runat="server" Width="100%">
                                                                            <ajxToolkit:TabPanel HeaderText="Description" ToolTip="Enter Description." runat="server"
                                                                                ID="tabDetails" Width="100%" TabIndex="0">
                                                                                <ContentTemplate>
                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Label runat="server" ID="lblRequiredriskDescription" Text="*" ForeColor="Red"></asp:Label>
                                                                                                <asp:Label runat="server" ID="lblDesc" Text="Description" CssClass="headerlabel"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:TextBox runat="server" ID="txtDescription" TextMode="MultiLine" Width="99%"
                                                                                                    Rows="11"></asp:TextBox>
                                                                                                <asp:RequiredFieldValidator runat="server" ID="reqValtxtDescription" Display="None"
                                                                                                    SetFocusOnError="true" ControlToValidate="txtDescription" ValidationGroup="insertRisk"
                                                                                                    ErrorMessage="Description is a required field."></asp:RequiredFieldValidator>
                                                                                                <ajxToolkit:TextBoxWatermarkExtender ID="WatermarktxtDescription" runat="server"
                                                                                                    TargetControlID="txtDescription" WatermarkText="Enter description here..." WatermarkCssClass="watermark" />
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ContentTemplate>
                                                                            </ajxToolkit:TabPanel>
                                                                            <ajxToolkit:TabPanel HeaderText=" Notes " ToolTip="Manage Notes." runat="server"
                                                                                ID="tabNotes" TabIndex="1">
                                                                                <ContentTemplate>
                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                        <tr>
                                                                                            <td style="width: 45%" valign="top">
                                                                                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <asp:Label runat="server" ID="lblNewNote" Text="New Note" CssClass="headerlabel"></asp:Label>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <asp:TextBox runat="server" ID="txtNewNote" TextMode="MultiLine" Width="98%" Rows="11"></asp:TextBox>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                            <td align="left" valign="top" width="55%">
                                                                                                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <asp:Label runat="server" ID="lblEarlierNotes" CssClass="headerlabel" Text="Previous Notes"></asp:Label>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                    <tr>
                                                                                                        <td>
                                                                                                            <div style="overflow: auto; width: 100%; height: 160px; padding: 0px; margin: 0px;">
                                                                                                                <asp:GridView EmptyDataText="No previous notes for the Risk." AllowSorting="true"
                                                                                                                    Width="100%" ID="gridRiskNotes" runat="server" AutoGenerateColumns="False" CssClass="table"
                                                                                                                    ShowHeader="false" Font-Italic="false" ToolTip="This grid displays the previous notes entered in the system for the Risk.">
                                                                                                                    <AlternatingRowStyle CssClass="alternate" Font-Italic="true" />
                                                                                                                    <EmptyDataRowStyle CssClass="selectedRowGrid" />
                                                                                                                    <HeaderStyle HorizontalAlign="Left" />
                                                                                                                    <Columns>
                                                                                                                        <asp:TemplateField>
                                                                                                                            <ItemTemplate>
                                                                                                                                <asp:Label runat="server" ID="lblFullName" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("SubmittedByFullName").ToString()) %>'></asp:Label>
                                                                                                                                <asp:Label runat="server" ID="lblNote" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("Note").ToString()) %>'></asp:Label>
                                                                                                                                <asp:Label runat="server" ID="lblNoteSubmittedDate" Text='<%# Eval("CreatedDate") %>'></asp:Label>
                                                                                                                                <cc2:UTCToLocalExtenderControl ID="UTCToLocalExlblNoteSubmittedDate" runat="server"
                                                                                                                                    TargetControlID="lblNoteSubmittedDate" DateTimeFormatString="g" />
                                                                                                                            </ItemTemplate>
                                                                                                                        </asp:TemplateField>
                                                                                                                    </Columns>
                                                                                                                </asp:GridView>
                                                                                                            </div>
                                                                                                        </td>
                                                                                                    </tr>
                                                                                                </table>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ContentTemplate>
                                                                            </ajxToolkit:TabPanel>
                                                                            <ajxToolkit:TabPanel HeaderText="Risk Owner Commitment" ToolTip="Enter commitment for the risk."
                                                                                runat="server" ID="tabCommitment" Width="100%" TabIndex="2">
                                                                                <ContentTemplate>
                                                                                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Label CssClass="headerlabel" runat="server" ID="lblComments" Text="Risk Owner Commitment"></asp:Label>
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:TextBox runat="server" ID="txtComments" TextMode="MultiLine" Width="99%" Rows="11"
                                                                                                    ToolTip="Enter commitment for the risk."></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </ContentTemplate>
                                                                            </ajxToolkit:TabPanel>
                                                                        </ajxToolkit:TabContainer>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </ajxToolkit:TabPanel>
                                        <ajxToolkit:TabPanel HeaderText="Incident Log" ToolTip="Manage Risk Incidents" TabIndex="1"
                                            runat="server" ID="tabRiskIncidents" Visible="true">
                                            <ContentTemplate>
                                                <table border="0" cellpadding="5" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td align="left" valign="middle" style="width: 5%">
                                                            <img src="../Images/Pushpin-32.png" alt="Incident Log" />
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblIncidentText" Text="Incident Log" CssClass="headerlabel"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <hr />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="top" colspan="2" style="height: 535px;">
                                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                <tr>
                                                                    <td align="right">
                                                                        <asp:Button runat="server" ID="newIncident" Text="Submit New Incident" Width="130"
                                                                            ToolTip="Click to Submit new incident." />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:Panel CssClass="modalWindow" runat="server" ID="pnlSubmitIncident" Style="display: none"
                                                                            Width="550px" EnableViewState="false">
                                                                            <table cellpadding="5" cellspacing="5" border="0" width="100%">
                                                                                <tr>
                                                                                    <td>
                                                                                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                                            <tr>
                                                                                                <td align="left" valign="middle" style="width: 40px;">
                                                                                                    <img src="../Images/Pushpin-32.png" alt="New Incident" />
                                                                                                </td>
                                                                                                <td>
                                                                                                    <asp:Label runat="server" ID="lblNewIncidentPage" Text="New Incident" CssClass="headerlabel"></asp:Label>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td colspan="2">
                                                                                                    <hr />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <asp:Label runat="server" ID="lblTitleRequiredIncident" Text="*" ForeColor="Red"></asp:Label><asp:Label
                                                                                            runat="server" ID="lblpopIncidentTitle" CssClass="headerlabel" Text="Title"> </asp:Label>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <asp:TextBox runat="server" EnableViewState="false" ID="txtpopTitle" Width="350"
                                                                                            MaxLength="100"></asp:TextBox>
                                                                                        <ajxToolkit:TextBoxWatermarkExtender ID="txttxtpopTitle" runat="server" TargetControlID="txtpopTitle"
                                                                                            WatermarkText="Enter title here..." WatermarkCssClass="watermark" />
                                                                                        <asp:RequiredFieldValidator runat="server" ID="reqtxtpopTitle" Display="None" SetFocusOnError="true"
                                                                                            ControlToValidate="txtpopTitle" ValidationGroup="insertIncident" ErrorMessage="Incident title is a required field."></asp:RequiredFieldValidator>
                                                                                        <asp:ValidationSummary ID="valSumInsertIncident" runat="server" ValidationGroup="insertIncident"
                                                                                            DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" HeaderText="Please correct the following:" />
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <asp:Label runat="server" ID="lblpopDesc" EnableViewState="false" CssClass="headerlabel"
                                                                                            Text="Description"> </asp:Label>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <asp:TextBox EnableViewState="false" runat="server" ID="txtpopDesc" Width="100%"
                                                                                            Rows="10" TextMode="MultiLine"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        &nbsp;
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="right">
                                                                                        <asp:Button runat="server" ID="btnInsertIncident" ValidationGroup="insertIncident"
                                                                                            Text="Submit" ToolTip="Click here to submit new Incident." OnClick="btnInsertIncident_Clicked" />
                                                                                        &nbsp;
                                                                                        <input id="btnIncidentClose" runat="server" type="button" value=" Cancel " title="Click here to close the current window." />
                                                                                        <asp:Button runat="server" ID="btnhiddenIncidentClose" Style="display: none" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </asp:Panel>
                                                                        <ajxToolkit:ModalPopupExtender EnableViewState="false" ID="mpeSubmitIncident" runat="server"
                                                                            PopupControlID="pnlSubmitIncident" BackgroundCssClass="modalBackground" DropShadow="false"
                                                                            TargetControlID="newIncident" CancelControlID="btnIncidentClose">
                                                                        </ajxToolkit:ModalPopupExtender>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        <asp:GridView ID="gvIncidents" PageSize="8" runat="server" AutoGenerateColumns="False"
                                                                            Caption="Existing Incidents." CaptionAlign="Left" CssClass="table" ToolTip="This table shows all the incidents that are logged in the system for the Risk."
                                                                            OnSelectedIndexChanged="gvIncidents_SelectedIndexChanged" AllowSorting="True"
                                                                            AllowPaging="True" OnSorting="gvIncidents_Sorting" OnPageIndexChanging="gvIncidents_PageIndexChanging"
                                                                            DataKeyNames="IncidentID" EmptyDataText="There are no incidents logged for the risk."
                                                                            Width="100%">
                                                                            <PagerSettings Position="TopAndBottom" PageButtonCount="10" />
                                                                            <PagerStyle HorizontalAlign="Right" />
                                                                            <SelectedRowStyle CssClass="selectedRowGrid" />
                                                                            <AlternatingRowStyle CssClass="alternate" />
                                                                            <EmptyDataRowStyle CssClass="selectedRowGrid" />
                                                                            <Columns>
                                                                                <asp:CommandField HeaderText="Select" ShowSelectButton="true" SelectText="Details | Edit">
                                                                                    <ItemStyle Width="100px" Wrap="False" />
                                                                                    <ControlStyle Width="90px" />
                                                                                </asp:CommandField>                                                                                
                                                                                  <asp:TemplateField  HeaderText="ID" SortExpression="ID" ItemStyle-Width="35px" ItemStyle-HorizontalAlign="left" >
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" ID="lblIncidentGridID" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("IncidentID").ToString()) %>'></asp:Label>                                                                                        
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>                                                                                                                                                               
                                                                                 <asp:TemplateField  HeaderText="Title" SortExpression="Title" ItemStyle-Wrap ="true" >
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" ID="lblTitleIncidentGrid" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("Title").ToString()) %>'></asp:Label>                                                                                        
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="SubmittedBy" HeaderText="Submitted By" SortExpression="SubmittedBy">
                                                                                    <ItemStyle Width="150px" Wrap="False" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField ItemStyle-Width="110px" HeaderText="Created Date" SortExpression="CreatedDate">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" ID="lblSubmittedByIncidentsGrid" Text='<%# Eval("SubmittedDate") %>'></asp:Label>
                                                                                        <cc2:UTCToLocalExtenderControl ID="UTCToLocalExlblSubmittedByIncidentsGrid" runat="server"
                                                                                            TargetControlID="lblSubmittedByIncidentsGrid" DateTimeFormatString="d" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="UpdatedBy" HeaderText="Updated By" SortExpression="UpdatedBy">
                                                                                    <ItemStyle Width="150px" Wrap="False" />
                                                                                </asp:BoundField>
                                                                                <asp:TemplateField ItemStyle-Width="110px" HeaderText="Updated Date" SortExpression="updatedDate">
                                                                                    <ItemTemplate>
                                                                                        <asp:Label runat="server" ID="lblUpdatedDateIncidentsGrid" Text='<%# Eval("UpdatedDate") %>'></asp:Label>
                                                                                        <cc2:UTCToLocalExtenderControl ID="UTCToLocalExlblUpdatedIncidentsGrid" runat="server"
                                                                                            TargetControlID="lblUpdatedDateIncidentsGrid" DateTimeFormatString="d" />
                                                                                    </ItemTemplate>
                                                                                </asp:TemplateField>
                                                                            </Columns>
                                                                        </asp:GridView>
                                                                        <asp:ObjectDataSource ID="odsSearchIncidents" runat="server" SelectMethod="GetIncidentList"
                                                                            TypeName="Microsoft.InformationSecurity.RiskManagement.ISRMWeb.Risks.SubmitRisk"
                                                                            OnSelecting="odsSearchIncidents_Selecting" SortParameterName="sortExp">
                                                                            <SelectParameters>
                                                                                <asp:Parameter Name="riskID" Type="Int32" />
                                                                                <asp:Parameter DefaultValue="ASC" Name="dir" Type="String" />
                                                                            </SelectParameters>
                                                                        </asp:ObjectDataSource>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td>
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="top">
                                                                        <asp:Panel ID="pnlIncidentData" runat="server" CssClass="incidentEditBoundry" DefaultButton="btnUpdateIncident"
                                                                            ToolTip="This area displays the details of the selected Incident." Visible="false"
                                                                            Width="99%">
                                                                            <table cellpadding="0" cellspacing="10" border="0" width="100%">
                                                                                <tr>
                                                                                    <td style="width: 5%">
                                                                                        <asp:Label runat="server" ID="lblTitleUpdateIncident" Text="*" ForeColor="Red"></asp:Label><asp:Label
                                                                                            ID="lblIncidentName" runat="server" Text="Title" CssClass="headerlabel"></asp:Label>
                                                                                    </td>
                                                                                    <td style="width: 30%">
                                                                                        <asp:TextBox ID="txtIncidentdentTitle" Width="350" runat="server" MaxLength="100"
                                                                                            ToolTip="Title of the Incident"></asp:TextBox>
                                                                                        <ajxToolkit:TextBoxWatermarkExtender ID="WatermarkExtxtIncidentdentTitle" runat="server"
                                                                                            TargetControlID="txtIncidentdentTitle" WatermarkText="Enter title here..." WatermarkCssClass="watermark" />
                                                                                        <asp:RequiredFieldValidator runat="server" ID="reqtxtIncidentdentTitle" Display="None"
                                                                                            SetFocusOnError="true" ControlToValidate="txtIncidentdentTitle" ValidationGroup="updateIncident"
                                                                                            ErrorMessage="Incident title is a required field."></asp:RequiredFieldValidator>
                                                                                        <asp:ValidationSummary ID="valSumUpdateIncident" runat="server" ValidationGroup="updateIncident"
                                                                                            DisplayMode="BulletList" ShowMessageBox="true" ShowSummary="false" HeaderText="Please correct the following:" />
                                                                                    </td>
                                                                                    <td style="width: 10%">
                                                                                        <asp:Label ID="lblSubmittedbyIncident" runat="server" Text="Submitted By" CssClass="headerlabel"></asp:Label>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox runat="server" Width="150px" Enabled="false" ID="txtSubmittedByIncident"
                                                                                            ToolTip="Incident Identifier."></asp:TextBox>
                                                                                    </td>
                                                                                    <td style="width: 10%">
                                                                                        <asp:Label ID="lblIncidentID" runat="server" Text="Incident ID" CssClass="headerlabel"></asp:Label>
                                                                                    </td>
                                                                                    <td>
                                                                                        <asp:TextBox runat="server" Width="100px" Enabled="false" ID="txtIncidentIdentifier"
                                                                                            ToolTip="Incident Identifier."></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="6">
                                                                                        <asp:Label ID="lblAttackDescription" runat="server" Text="Description" CssClass="headerlabel"></asp:Label>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="6">
                                                                                        <asp:TextBox ID="txtIncidentDescription" runat="server" Rows="10" TextMode="MultiLine"
                                                                                            Width="100%" ToolTip="Enter or update the description of the Incident"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="6" align="right">
                                                                                        <asp:Button ID="btnUpdateIncident" runat="server" OnClick="btnUpdateIncident_Click"
                                                                                            ToolTip="Click to Update the Incident information." Text="Update Incident" ValidationGroup="updateIncident" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </asp:Panel>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </ajxToolkit:TabPanel>
                                        <ajxToolkit:TabPanel TabIndex="2" HeaderText="History" ToolTip="View History of the Risk"
                                            runat="server" ID="tabRiskHistory" Visible="false">
                                            <ContentTemplate>
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td align="left" valign="middle" style="width: 5%">
                                                            <img src="../Images/Clock-32.png" alt="History" />
                                                        </td>
                                                        <td>
                                                            <asp:Label runat="server" ID="lblHistory" Text="Risk History" CssClass="headerlabel"></asp:Label>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <hr style="width: 100%;" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="top" align="left" style="height: 535px;" colspan="2">
                                                            <asp:Panel ID="pnlHistoryMaster" runat="server" Width="100%">
                                                                <asp:GridView Width="100%" AllowPaging="false" BorderWidth="0px" CellSpacing="3"
                                                                    ID="gvHistoryMaster" DataKeyNames="PersonID,Ticks" AutoGenerateColumns="False"
                                                                    runat="server" ShowHeader="False" OnRowCreated="gvHistory_RowCreated" EmptyDataText="No history is available for the risk.">
                                                                    <EmptyDataRowStyle CssClass="selectedRowGrid" />
                                                                    <Columns>
                                                                        <asp:TemplateField>
                                                                            <ItemTemplate>
                                                                                <asp:Panel ID="pnlNameDatedate" runat="server">
                                                                                    <asp:Image ID="imgCollapsible" ImageUrl="~/Images/plus.png" Style="margin-right: 5px;"
                                                                                        runat="server" /><span>
                                                                                            <asp:Label runat="server" ID="lbltimeStampHistory" Text='<%# Eval("CreatedDate") %>'></asp:Label>
                                                                                            by
                                                                                            <asp:Label runat="server" ID="lblFullNameHistory" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("FullName").ToString()) %>'> </asp:Label>
                                                                                            <cc2:UTCToLocalExtenderControl ID="UTCToLocalExtenderControlCreatedDate" runat="server"
                                                                                                TargetControlID="lbltimeStampHistory" DateTimeFormatString="g" />
                                                                                        </span>
                                                                                </asp:Panel>
                                                                                <asp:Panel Style="margin-left: 20px; margin-right: 0px" ID="pnlHistoryDetails" runat="server"
                                                                                    BorderWidth="0px">
                                                                                    <asp:GridView AutoGenerateColumns="false" Width="100%" ID="gvFieldDetail" DataSourceID="obdsHistroyDetail"
                                                                                        EnableViewState="true" runat="server" ShowHeader="true" CssClass="table">
                                                                                        <RowStyle BorderWidth="1px" BorderStyle="Solid" BorderColor="Silver" />
                                                                                        <AlternatingRowStyle BackColor="#F1FAFF" BorderWidth="1px" BorderStyle="Solid" BorderColor="Silver" />
                                                                                        <Columns>
                                                                                            <asp:TemplateField ItemStyle-Width="20%" HeaderText="Field">
                                                                                                <ItemTemplate>
                                                                                                    <asp:Label runat="server" ID="lblField" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("FieldName").ToString()) %>'></asp:Label>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                            <asp:TemplateField ItemStyle-Width="40%" HeaderText="Old Value">
                                                                                                <ItemTemplate>
                                                                                                    <asp:Label runat="server" ID="lblOldValue" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("OldValue").ToString()) %>'></asp:Label>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                            <asp:TemplateField ItemStyle-Width="40%" HeaderText="New Value">
                                                                                                <ItemTemplate>
                                                                                                    <asp:Label runat="server" ID="lblNewValue" Text='<%# Microsoft.Security.Application.AntiXss.HtmlEncode(Eval("NewValue").ToString()) %>'></asp:Label>
                                                                                                </ItemTemplate>
                                                                                            </asp:TemplateField>
                                                                                        </Columns>
                                                                                    </asp:GridView>
                                                                                    <asp:ObjectDataSource ID="obdsHistroyDetail" runat="server" TypeName="Microsoft.InformationSecurity.RiskManagement.ISRMWeb.Risks.SubmitRisk"
                                                                                        SelectMethod="GetDetailHistory">
                                                                                        <SelectParameters>
                                                                                            <asp:Parameter Name="PersonID" Type="Int32" />
                                                                                            <asp:Parameter Name="Ticks" Type="Int64" />
                                                                                            <asp:Parameter Name="RiskID" Type="Int32" />
                                                                                        </SelectParameters>
                                                                                    </asp:ObjectDataSource>
                                                                                </asp:Panel>
                                                                                <ajxToolkit:CollapsiblePanelExtender ID="cpe" runat="Server" TargetControlID="pnlHistoryDetails"
                                                                                    EnableViewState="true" CollapsedSize="0" Collapsed="true" ExpandControlID="pnlNameDatedate"
                                                                                    CollapseControlID="pnlNameDatedate" AutoCollapse="false" AutoExpand="false" ScrollContents="false"
                                                                                    ImageControlID="imgCollapsible" ExpandedImage="~/Images/minus.png" CollapsedImage="~/Images/plus.png"
                                                                                    ExpandDirection="Vertical" />
                                                                            </ItemTemplate>
                                                                        </asp:TemplateField>
                                                                    </Columns>
                                                                </asp:GridView>
                                                            </asp:Panel>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </ajxToolkit:TabPanel>
                                        <ajxToolkit:TabPanel TabIndex="3" HeaderText="Task Information" ToolTip="Add or View Tasks"
                                            runat="server" ID="tabTaskManagement">
                                            <HeaderTemplate>
                                                Task Information
                                            </HeaderTemplate>
                                            <ContentTemplate>
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                    <tr>
                                                        <td colspan="2">
                                                            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                                                <tr>
                                                                    <td align="left" valign="middle" style="width: 5%">
                                                                        <img src="../Images/Task-32.png" alt="TaskList" />
                                                                    </td>
                                                                    <td>
                                                                        <asp:Label runat="server" ID="lblTaskInfoHeader" Text="Task Information" CssClass="headerlabel"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td colspan="2">
                                                                        <hr />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="top" align="left" style="height: 535px;">
                                                            <cvt:CreateTasks runat="server" ID="createViewTasks" />
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ContentTemplate>
                                        </ajxToolkit:TabPanel>
                                    </ajxToolkit:TabContainer>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
